package com.wxc.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
import org.apache.http.HttpStatus;

import java.io.Serializable;


@Getter
@ToString
@AllArgsConstructor
public enum REnum implements Serializable {
    SUCCESS(200,"SUCCESS"),
    AUTHORIZATION_ERROR(403, "权限不足"),
    ERROR(500,"服务端异常"),
    // Login
    LOGIN_ERROR(500210,"用户名或密码错误"),
    MOBILE_ERROR(500211,"手机号码格式不正确"),
    ACCOUNT_DISABLE_ERROR(500300, "账号被禁用"),
    TOKEN_ERROR(500301, "token错误或失效"),
    ACCOUNT_CANCEL_ERROR(400301, "账号已注销"),
    TOKEN_DATABASE_ERROR(500302, "token和数据库匹配不上"),
    // bind
    BIND_ERROR(500212,"参数校验失败");

    private final int code;
    private final String message;
}
